package com.itlong.cloud.property.dao;

import com.itlong.cloud.POJO.DTO.property.AppUserStayInHistoryDTO;
import com.itlong.cloud.POJO.PO.AppUserStayInHistoryPO;
import com.itlong.cloud.abstracts.IAbstractBaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <desc>
 *       物业系统用户入住历史数据访问接口
 * </desc>
 *
 * @createDate 2017/12/25
 */
@Mapper
@Repository
public interface IPropertyAppUserStayInHistoryDao extends IAbstractBaseDao<AppUserStayInHistoryPO>{
    /**
     * <desc>
     *     保存用户入住历史数据接口
     * </desc>
     * @param userStayInHistoryPOS 住户迁入迁出历史记录实体类集
     * @return
     * @author zhangs
     * @createDate 2017/10/25
     */
    void saveUserStayInHistory(List<AppUserStayInHistoryPO> userStayInHistoryPOS);

    /**
     * <desc>
     *      查询住户的入住历史(迁入/迁出)
     * <desc/>
     *
     * @param  param
     * @return List<AppUserStayInHistoryDTO> App用户详情页中入住历史数据传输对象集
     * @author zhangs
     * @createDate 2017/12/25
     */
    List<AppUserStayInHistoryDTO> getUserStayInHistory(Map<String, Object> param);

}
